package apbms

class LoginFilters {

    def filters = {
        all(controller:'*', action:'*') {
            before = {
                if( !session.usuario && !controllerName.equals('login')){
		    redirect(controller:'login',action:'login')
		}
            }
            after = {
                
            }
            afterView = {
                
            }
        }
    }
    
}
